"""
@Author  : 康帅
@Time    : 2021/1/13 17:04
@Function: 
"""


class RET:
    OK = 0
    DBERR = 4001
    NODATA = 4002
    DATAEXIST = 4003
    DATAERR = 4004
    PARAMERR = 4005
    NETWORKERR = 4006
    ACCESSERR = 4007
    NOTLOGIN = 4008
    CONNERR = 4009
    SCHEDULERERR = 4010


error_map = {
    RET.OK: "成功",
    RET.DBERR: "服务异常",
    RET.NODATA: "无数据",
    RET.DATAEXIST: "数据已存在",
    RET.DATAERR: "数据错误",
    RET.PARAMERR: "参数错误",
    RET.NETWORKERR: "网络异常",
    RET.ACCESSERR: "权限错误",
    RET.NOTLOGIN: "没有登录",
    RET.CONNERR: "连接错误",
    RET.SCHEDULERERR: "定时任务错误",
}
